package com.hopes.bizz.close.visitor.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 申请-待审核数量 VO
 * @time 2024/2/5 14:20
 */
@Data
@NoArgsConstructor
public class ClosedApplyToDoAuditVO implements Serializable {

    private static final long serialVersionUID = -316866621069871182L;

    /**
     * 访客数量
     */
    private Integer visitorNum;

    /**
     * 危险品车辆
     */
    private Integer hazardCarNum;

    /**
     * 普通车辆
     */
    private Integer generalCarNum;

    /**
     * 危险品入园申请数量
     */
    private Integer hazardApplyNum;

    /**
     * 企业人员
     */
    private Integer companyPersonNum;


    public ClosedApplyToDoAuditVO(Integer visitorNum, Integer hazardCarNum, Integer generalCarNum, Integer hazardApplyNum, Integer companyPersonNum) {
        this.visitorNum = Optional.ofNullable(visitorNum).orElse(0);
        this.hazardCarNum = Optional.ofNullable(hazardCarNum).orElse(0);
        this.generalCarNum = Optional.ofNullable(generalCarNum).orElse(0);
        this.hazardApplyNum = Optional.ofNullable(hazardApplyNum).orElse(0);
        this.companyPersonNum = Optional.ofNullable(companyPersonNum).orElse(0);
    }


}
